<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>理财直播课</title>
  <!-- 公共资源 -->
  <script src="./js/jquery.min.js"></script>
  <script src="./js/rem.js"></script>
  <link rel="stylesheet" href="./css/common.css">
  <!-- 公共资源结束 -->
  <link rel="stylesheet" href="./css/broadcast.css">

</head>

<body>
  <div id="app">
    <div class="broadcast">
      <div class="title"><i class="icon-dui"></i>领课成功，快加老师微信进群吧！</div>
      <div class="code">
        <div class="name">长按二维码加老师微信进群</div>
        <div class="qrcode">
          <div class="qrcodeInfo">
            <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" />
            <div class="qrcodeContent">
              <div class="labelName">安财学堂-孟凡老师</div>
              <div class="teacher"><i class="icon-mingxing"></i>安财明星老师</div>
            </div>
          </div>
          <img class="qrcode-images" src="https://qr.api.cli.im/newqr/create?data=1&level=H&transparent=false&bgcolor=%23FFFFFF&forecolor=%23000000&blockpixel=12&marginblock=1&logourl=&logoshape=no&size=260&kid=cliim&key=2ebf180a9341d3de2aa8d6008e518ae8" alt="">
        </div>
        <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" hidden id="myLogo" />
        <div class="userGroup">
          <div class="picture">
            <ul>
              <li>
                <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" />
              </li>
              <li>
                <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" />
              </li>
              <li>
                <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" />
              </li>
              <li>
                <img src="https://sucai.suoluomei.cn/sucai_zs/images/20191126150939-avatar.jpg" />
              </li>
            </ul>
          </div>
          <div class="data"><span>232555</span> 人已领好礼</div>
        </div>
      </div>
    </div>
  </div>
</body>
<script type="text/javascript">
window.onload = function () {
  (function () {
    var  $ul = $('.picture ul'),
      $li = $('.picture ul li'),
      $wrap = $('.picture '),
      clickTime = 0,
      timer = null,
      index = 0,
      jg = $li.width();
      console.log($li.length)
    auto();
    function auto() {
      timer = setInterval(function () {
        index++;
        $ul.stop().animate({
          marginLeft: -jg * index + 'px'
        },
          500,
          function () {
            if (index == ($li.length/2)) {
              $ul.css('marginLeft', 0);
              index = 0;
            }
          });
      },2000);
    }
  })();
}
</script>

</html>